<%--
  Created by IntelliJ IDEA.
  User: Shadow
  Date: 11/17/2017
  Time: 1:10 AM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Test</title>
</head>
<body>
<c:forEach items="${list}" var="person">
    <tr>
            ${person.phone}<br>
    </tr>
</c:forEach>
<tr>
    <td colspan="6" align="center" bgcolor="#5BA8DE">共${page.totalRecords}条记录 共${page.totalPages}页 当前第${page.pageNo}页<br>

        <a href="${path}/showPage?pageNo=${page.topPageNo }"><input type="button" name="fristPage" value="首页" /></a>
        <c:choose>
            <c:when test="${page.pageNo!=1}">

                <a href="${path}/showPage?pageNo=${page.previousPageNo }"><input type="button" name="previousPage" value="上一页" /></a>

            </c:when>
            <c:otherwise>

                <input type="button" disabled="disabled" name="previousPage" value="上一页" />

            </c:otherwise>
        </c:choose>
        <c:choose>
            <c:when test="${page.pageNo != page.totalPages}">
                <a href="${path}/showPage?pageNo=${page.nextPageNo }"><input type="button" name="nextPage" value="下一页" /></a>
            </c:when>
            <c:otherwise>

                <input type="button" disabled="disabled" name="nextPage" value="下一页" />

            </c:otherwise>
        </c:choose>
        <a href="${path}/showPage?pageNo=${page.bottomPageNo }"><input type="button" name="lastPage" value="尾页" /></a>
    </td>
</tr>
</body>
</html>
